home *** CD-ROM | disk | FTP | other *** search
- -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C)
- -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
- --
- class STD_INPUT
- --
- -- To use the standard input file. As for UNIX, the default standard
- -- input is the keyboard.
- --
- -- Notes : - the predefined `std_input' should be use to have only
- -- one instance of the class STD_INPUT.
- -- - to do reading or writing at the same time on the screen,
- -- see STD_INPUT_OUTPUT,
- -- - to handle cursor of the screen, see CURSES.
- --
-
- inherit
- STD_FILE_READ
- redefine make, disconnect
- end;
-
- creation {ANY}
- make, connect_to
-
- feature {ANY}
-
- make is
- do
- input_stream := stdin;
- end;
-
- disconnect is
- local
- err: INTEGER;
- do
- err := fclose(input_stream);
- path := Void;
- input_stream := stdin;
- end;
-
- feature {NONE}
-
- stdin: POINTER is
- external "CSE"
- end;
-
- end -- STD_INPUT
-
-